{extend name="common/layout" /}

{block name="title"}重置密码{/block}
{block name="content"}
<div id="content">

    <div class="page-header">
        <div class="container-fluid">
            <div class="pull-right">
                <button type="submit" form="form-create" data-toggle="tooltip" title="保存" class="btn btn-primary">
                    <i class="fa fa-save"></i>
                </button>
                <a href="{:url('index')}" data-toggle="tooltip" title="取消" class="btn btn-default">
                    <i class="fa fa-reply"></i>
                </a>
            </div>
            <h1>重置密码</h1>
            <ul class="breadcrumb">
                <li>
                    <a href="/back/site/index.html">首页</a>
                </li>
                <li>
                    <a href="/back/brand/index.html">重置密码</a>
                </li>
            </ul>
        </div>
    </div>
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">
                    <i class="fa fa-pencil"></i>
                    重置<span style="color:red;">[{$data['username']}]</span>密码
                </h3>
            </div>
            <div class="panel-body">
                <form action="{:url('repassword')}" method="post" enctype="multipart/form-data" id="form-create"
                      class="form-horizontal">
                    <ul class="nav nav-tabs">
                        <li class="active">
                            <a href="#tab-general" data-toggle="tab">基本信息</a>
                        </li>
                    </ul>
                    <div class="tab-content">
                        <div class="tab-pane active" id="tab-general">

                            {if condition="!is_null($id)"}

                            <input type="hidden" name="id" value="{$id}">
                            {/if}



                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-password">密码</label>
                                <div class="col-sm-10">
                                    <input type="password" name="password" value="" placeholder="密码"
                                           id="input-password" class="form-control"/>

                                    {if condition="isset($message['password'])"}
                                    <label class="text-danger" id="input-password-error" for="input-password">{$message['password']}</label>

                                    {else /}

                                    {/if}

                                </div>
                            </div>

                            <div class="form-group required">
                                <label class="col-sm-2 control-label" for="input-password">确认密码</label>
                                <div class="col-sm-10">
                                    <input type="password" name="password-confirm" value="" placeholder="确认密码"
                                           id="input-password-confirm" class="form-control"/>

                                    {if condition="isset($message['password-confirm'])"}
                                    <label class="text-danger" id="input-password-confirm-error" for="input-password-confirm">{$message['password-confirm']}</label>

                                    {else /}

                                    {/if}

                                </div>
                            </div>





                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}



